package com.enqualcomm.kids.mvp.map;

import com.amap.api.maps.model.BitmapDescriptor;
import com.amap.api.maps.model.BitmapDescriptorFactory;
import com.enqualcomm.kids.R;

/**
 * Created by yinzhiqun on 2015/10/21.
 */
public class BitmapHolder {

//    private static BitmapDescriptor start_point;
//    private static BitmapDescriptor end_point;
//    private static BitmapDescriptor violet_point;
//    private static BitmapDescriptor blue_point;
//    private static BitmapDescriptor track_image;
//    private static BitmapDescriptor safezoom_center_point;

    public static BitmapDescriptor getStartPoint() {
//        if (start_point==null) {
//            start_point = BitmapDescriptorFactory.fromResource(R.drawable.start_point);
//        }
//        return start_point;
        return BitmapDescriptorFactory.fromResource(R.drawable.start_point);
    }

    public static BitmapDescriptor getEndPoint() {
//        if (end_point==null) {
//            end_point = BitmapDescriptorFactory.fromResource(R.drawable.end_point);
//        }
//        return end_point;
        return BitmapDescriptorFactory.fromResource(R.drawable.end_point);
    }
    public static BitmapDescriptor getVioletPoint() {
//        if (violet_point==null) {
//            violet_point = BitmapDescriptorFactory.fromResource(R.drawable.violet_point);
//        }
//        return violet_point;
        return BitmapDescriptorFactory.fromResource(R.drawable.violet_point);
    }
    public static BitmapDescriptor getBluePoint() {
//        if (blue_point==null) {
//            blue_point = BitmapDescriptorFactory.fromResource(R.drawable.blue_point);
//        }
//        return blue_point;
        return BitmapDescriptorFactory.fromResource(R.drawable.blue_point);
    }
    public static BitmapDescriptor getTrackPoint() {
//        if (track_image==null) {
//            track_image = BitmapDescriptorFactory.fromResource(R.drawable.track_image);
//        }
//        return track_image;
        return BitmapDescriptorFactory.fromResource(R.drawable.track_image);
    }

//    public static BitmapDescriptor getFencingCenterPoint() {
////        if (safezoom_center_point==null) {
////            safezoom_center_point = BitmapDescriptorFactory.fromResource(R.drawable.safezoom_center_point);
////        }
////        return safezoom_center_point;
//        return BitmapDescriptorFactory.fromResource(R.drawable.safezoom_center_point);
//    }
}
